import request from '@/utils/request'
// 封装登入接口
export function login(data) {
  return request({
    url: '/apiH1/user/admin/login',
    method: 'post',
    data: data
  })
}
// 发送验证码
export function CaptchaGraphicCode(data) {
  return request({
    url: "/apiH1/aliyun/captcha/sendCode",
    method: "post",
    data: data,
  });
}
// 封装登入接口
export function LoginQ(data) {
  return request({
    url: "/apiH1/user/admin/login_q",
    method: "post",
    data: data,
  });
}

// 封装获取管理员信息接口
export function getUserInfo() {
  return request({
    url: "/apiH1/user/admin/info",
    method: "post",
  });
}
// 获取系统基本设置
export function GetAdminSet(data) {
  return request({
    url: "/apiH1/admin/set/info",
    method: "post",
    data: data,
  });
}

// 获取单位信息
export function GetCompany(data) {
  return request({
    url: "/apiH1/admin/company/info",
    method: "post",
    data: data,
  });
}
// 修改公司信息
export function EditCompany(data) {
  return request({
    url: "/apiH1/admin/company/edit",
    method: "post",
    data: data,
  });
}
// 基地认证提交
export function AttestationAdd(data) {
  return request({
    url: "/apiH1/admin/base/attestation/add",
    method: "post",
    data: data,
  });
}
// 基地认证信息
export function GetAttestationInfo(data) {
  return request({
    url: "/apiH1/admin/base/attestation/info",
    method: "post",
    data: data,
  });
}
// 获取审核记录
export function GetAttestList(data) {
  return request({
    url: "/apiH1/admin/attestation/list",
    method: "post",
    data: data,
  });
}
// 获取实习人员列表
export function GetPracticeUser(data) {
  return request({
    url: "/apiH1/admin/practice/list",
    method: "post",
    data: data,
  });
}
// 获取学校列表
export function GetSchool(data) {
  return request({
    url: "/apiH1/admin/school/list",
    method: "post",
    data: data,
  });
}

// 新增实习人员
export function AddPracticeUser(data) {
  return request({
    url: "/apiH1/admin/practice/add",
    method: "post",
    data: data,
  });
}
// Excel导入实习人员
export function ExcelPracticeUser(file) {
  return request({
    url: "/apiH1/admin/practice/excel",
    method: "post",
    data: file,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
}
// 获取实习人员详情
export function GetPracticUserInfo(data) {
  return request({
    url: "/apiH1/admin/practice/info",
    method: "post",
    data: data,
  });
}
// 修改实习人员资料
export function EditPracticeUser(data) {
  return request({
    url: "/apiH1/admin/practice/user/edit",
    method: "post",
    data: data,
  });
}
// 修改实习信息
export function EditPractice(data) {
  return request({
    url: "/apiH1/admin/practice/edit",
    method: "post",
    data: data,
  });
}
// 实习人员审核
export function PracticeUserReject(data) {
  return request({
    url: "/apiH1/admin/practice/reject",
    method: "post",
    data: data,
  });
}
// 获取实习交通补贴记录
export function GetTraffic(data) {
  return request({
    url: "/apiH1/admin/traffic/list",
    method: "post",
    data: data,
  });
}
// 获取实习交通补贴详情
export function GetTrafficInfo(data) {
  return request({
    url: "/apiH1/admin/traffic/info",
    method: "post",
    data: data,
  });
}
// 请求上传图片
export function UploadFile(file) {
  return request({
    url: "/apiH1/admin/aliyun/upload",
    method: "post",
    data: file,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
}
// 请求上传文件
export function UploadFile2(file) {
  return request({
    url: "/apiH1/admin/aliyun/upload2",
    method: "post",
    data: file,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
}
// 获取审核模版
export function GetAttestModel(data) {
  return request({
    url: "/apiH1/user/attestation/model/list",
    method: "post",
    data: data,
  });
}
// 提交审核结果
export function EditAttest(data) {
  return request({
    url: "/apiH1/admin/attestation/edit",
    method: "post",
    data: data,
  });
}
// 新增基地实习补贴审核
export function AddBaseInternship(data) {
  return request({
    url: "/apiH1/admin/base/internship/add",
    method: "post",
    data: data,
  });
}
// 获取实习基地补贴列表
export function GetBaseInternship(data) {
  return request({
    url: "/apiH1/admin/base/internship/list",
    method: "post",
    data: data,
  });
}
// 获取实习基地补贴详情
export function GetBaseInternshipInfo(data) {
  return request({
    url: "/apiH1/admin/base/internship/info",
    method: "post",
    data: data,
  });
}

// 删除实习基地补贴审核
export function DelBaseInternship(data) {
  return request({
    url: "/apiH1/admin/base/internship/del",
    method: "post",
    data: data,
  });
}
// 提交实习基地补贴审核
export function SubmitBaseInternship(data) {
  return request({
    url: "/apiH1/admin/base/internship/submit",
    method: "post",
    data: data,
  });
}
// 上传实习基地花名册
export function EditBaseInternship(data) {
  return request({
    url: "/apiH1/admin/base/internship/edit",
    method: "post",
    data: data,
  });
}
// 取消实习基地补贴审核
export function CancelBaseInternship(data) {
  return request({
    url: "/apiH1/admin/base/internship/cancel",
    method: "post",
    data: data,
  });
}
// 获取年度模版列表
export function BaseBuildModel(data) {
  return request({
    url: "/apiH1/admin/base/build/model/list",
    method: "post",
    data: data,
  });
}
// Excel导入员工
export function ExcelUser(file) {
  return request({
    url: "/apiH1/admin/excel/user",
    method: "post",
    data: file,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
}

// 生成二维码记录
export function AddQrCode() {
  return request({
    url: "/apiH1/admin/qr_code/add",
    method: "get",
  });
}
// 新增基地建设奖励审核
export function AddBaseBuild(data) {
  return request({
    url: "/apiH1/admin/base/build/add",
    method: "post",
    data: data,
  });
}
// 基地建设奖励列表
export function GetBaseBuildList(data) {
  return request({
    url: "/apiH1/admin/base/build/list",
    method: "post",
    data: data,
  });
}
// 获取基地建设奖励详情
export function GetBaseBuildInfo(data) {
  return request({
    url: "/apiH1/admin/base/build/info",
    method: "post",
    data: data,
  });
}
// 删除基地建设奖励审核
export function DelBaseBuild(data) {
  return request({
    url: "/apiH1/admin/base/build/del",
    method: "post",
    data: data,
  });
}
// 上传基地建设奖励花名册
export function EditBaseBuild(data) {
  return request({
    url: "/apiH1/admin/base/build/edit",
    method: "post",
    data: data,
  });
}
// 提交基地建设奖励审核
export function SubmitBaseBuild(data) {
  return request({
    url: "/apiH1/admin/base/build/submit",
    method: "post",
    data: data,
  });
}
// 取消基地建设奖励审核
export function CancelBaseBuild(data) {
  return request({
    url: "/apiH1/admin/base/build/cancel",
    method: "post",
    data: data,
  });
}
// 上级配套奖励列表
export function GetBaseSuperiorList(data) {
  return request({
    url: "/apiH1/admin/base/superior/list",
    method: "post",
    data: data,
  });
}
